package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.TextView;
import java.lang.ref.WeakReference;

public class foj extends SkinAttr {

    static final class a extends fkz<SkinAttr, Drawable> {
        private WeakReference<TextView> ˎ;

        public /* synthetic */ void ॱ(Object obj) {
            ˎ((Drawable) obj);
        }

        private a(TextView textView) {
            this.ˎ = new WeakReference(textView);
        }

        public void ˎ(Drawable drawable) {
            TextView textView = (TextView) this.ˎ.get();
            if (textView != null) {
                ftu.ˏ(textView, drawable);
            }
        }
    }

    public foj() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof TextView) {
            TextView textView = (TextView) view;
            if ("drawable".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "drawable";
                fks.ˎ(view.getContext(), this, new a(textView)).ॱ(z);
            }
        }
    }
}
